package com.dongdongshop.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.dongdongshop.data.Result;
import com.dongdongshop.enums.ResultEnums;

public class BaseController {

    /**
     * 降级方法
     * @param e
     * @param e
     * @return
     */
    public Result hotBlockHandler(BlockException e) {
        return Result.response(ResultEnums.TOO_MANY_REQUEST);
    }

}
